<template>
  <div class="header">
    城市选择
    <router-link to="/">
      <div class="iconfont header-back">&#xe66c;</div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "TopHeader",
}
</script>

<style scoped>
  .header{
    position: relative;/*相对定位*/
    overflow: hidden;
    height: 40px;
    text-align: center;/*字体水平居中*/
    line-height: 40px;
    background: #00bcd4;
    color: #fff;
    font-size: 18px;
  }
  .header-back{
    position: absolute;/*绝对定位*/
    top: 0px;
    left: 0px;
    width:25px;
    text-align: center;/*字体水平居中*/
    font-size: 25px;
    color: #fff;
  }
</style>
